# -*- encoding: utf-8 -*-
"""
@File : bmi.py
@Time : 2022/5/25 21:15
@Author : Linleil
"""


def bmi_cal(weight, height):
    bmi = weight / height / height
    return "%.2f" % bmi


def bmi_judge(bmi):
    bmi = float(bmi)
    if bmi > 23:
        msg = 'ARE TOO FAT.'
    elif bmi > 18.5:
        msg = 'are OK.'
    else:
        msg = 'NEED TO EAT MORE.'
    return msg
